using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class SceneLoader : Singleton<SceneLoader>
{
    public const string MAIN_MENU = "MainMenu";
    public const string GAME_PLAY = "GamePlay";

    protected override void Awake()
    {
        base.Awake();
    }

    public void LoadMainMenu()
    {
        SceneManager.LoadScene(MAIN_MENU);
    }

    public void LoadGamePlay()
    {
        SceneManager.LoadScene(GAME_PLAY);
        ScoreManager.Instance.ResetScore();
    }

    public void QuitGame()
    {
        #if UNITY_EDITOR
        UnityEditor.EditorApplication.isPlaying = false;
        #else
        Application.Quit();
        #endif
    }
}
